package com.bw.car_module.carlist;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class CartValueEntity {
    @PrimaryKey(autoGenerate = true)
    public long id;
    @ColumnInfo(name = "goods_count")
    public int goods_count;
    @ColumnInfo(name = "goods_desc")
    public String goods_desc;
    @ColumnInfo(name = "goods_icon")
    public String goods_icon;
    @ColumnInfo(name = "goods_id")
    public long goods_id;
    @ColumnInfo(name = "goods_price")
    public String goods_price;
    @ColumnInfo(name = "goods_sku")
    public String goods_sku;
    @ColumnInfo(name = "user_id")
    public long user_id;
    @ColumnInfo(name = "time")
    public long time;
    public boolean selFlag = false;//选择支付标志
    public boolean edtFlag = false;//编辑标志
    public boolean edtSelFlag = false;//编辑选择标志

    //比较value值
    public String getValue(){
        return ""+goods_count+goods_desc+goods_icon+goods_id+goods_price+goods_sku;
    }

}
